#include "App.h"

#include "GameState.h"

App::App(void)
{
	m_pStateManager = 0;
}

App::~App(void)
{
}

void App::go(void)
{
	new OgreSK();
	if(!OgreSK::getSingletonPtr()->initialiseOgre())
		return;

	OgreSK::getSingletonPtr()->m_pLog->logMessage("OgreSK initialized!");

	m_pStateManager = new StateManager();

	GameState::create("GameState", m_pStateManager);

	m_pStateManager->start(m_pStateManager->findByName("GameState"));
}
